Remove unnecessary check from HVM builder.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Feb 2007 14:38:08 +0000 (14:38 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Feb 2007 14:38:08 +0000 (14:38 +0000)
Thanks to Guy Zana for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/libxc/xc_hvm_build.c

index dd180cca8d49c3f4c9cdc9737f0ab48aab467e2f..28bc512218a2e964bdc87060dee81bec0b1d6bf2 100644 (file)
@@ -214,15 +214,6 @@ static int setup_guest(int xc_handle,
             v_start, v_end,
             elf_uval(&elf, elf.ehdr, e_entry));
 
-    if ( (v_end - v_start) > ((unsigned long long)nr_pages << PAGE_SHIFT) )
-    {
-        PERROR("Initial guest OS requires too much space: "
-               "(%lluMB is greater than %lluMB limit)\n",
-               (unsigned long long)(v_end - v_start) >> 20,
-               ((unsigned long long)nr_pages << PAGE_SHIFT) >> 20);
-        goto error_out;
-    }
-
     if ( (page_array = malloc(nr_pages * sizeof(xen_pfn_t))) == NULL )
     {
         PERROR("Could not allocate memory.\n");